<div class="menu fl">
    <ul id="mnParent" class="menu_amzcr">
        <?php foreach ($aryRootCategory as $key => $value) {?>
            <li class="mndrop">
                <a class="cname" href="<?php echo $root_page; ?>/danhmuc/<?php echo $value['category_id']; ?>/<?php echo $value['category_name_filter']; ?>.html"><?php echo $value['category_name']; ?></a>
                <div class="sub" style="display: none;">
                    <a class="cname" href="<?php echo $root_page; ?>/danhmuc/<?php echo $value['category_id']; ?>/<?php echo $value['category_name_filter']; ?>.html"><?php echo $value['category_name']; ?></a>
                    <?php if(count($arySubCategory) > 0){?>
                        <div class="col">
                        <?php foreach ($arySubCategory as $key_sub => $sub_value) {?>
                            <?php if ($sub_value['parent_id'] == $value['category_id']) {?>
                                <div style="padding-left: 0px;"><a href="<?php echo $root_page; ?>/danhmuc/<?php echo $sub_value['category_id']; ?>/<?php echo $sub_value['category_name_filter']; ?>.html" class="link normal"><?php echo $sub_value['category_name']; ?></a></div>
                            <?php } ?>
                        <?php } ?>
                        </div>
                    <?php } ?>
                    <img src="<?php echo $sub_domain['img'];?>/images/common/blank.gif" data-original="<?php echo $sub_domain['img']; ?>/images/upload/large/<?php echo $value['category_large_image'] ?>" class="imgadvertise" alt="<?php echo $value['category_name']; ?>" title="<?php echo $value['category_name']; ?>">
                </div>
            </li>
<?php } ?>
    </ul>
</div>